package cn.baimo.mapper;

import cn.baimo.pojo.User;
import cn.baimo.pojo.UserInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * ClassName: UserInfoMapper
 * Description:
 * date: 2020/8/28 0028 17:00:31
 *
 * @author BaiMo
 * @since JDK 1.8
 */
@Mapper
public interface UserInfoMapper {
    //注册时初始化用户用户信息
    @Insert("insert into user_info(uid,name,regDataTime) values(#{user.uid},#{name},#{regDataTime})")
    Integer insertUserInfo(UserInfo userInfo);

    //通过uid查询用户信息
    UserInfo selectUserInfoByUid(String uid);
}
